package com.snap.vseries.bean;

import android.util.Log;

import java.io.Serializable;

import io.protostuff.Tag;

public class ProcessBean implements Serializable {

    private static final String TAG = "ProcessBean";
    @Tag(1)
    private long sec;
    @Tag(2)
    private int stepIndex;
    @Tag(3)
    private int actionIndex;
    @Tag(4)
    private int cycleIndex;
    @Tag(5)
    private int priority;
    @Tag(6)
    private String content;
    @Tag(7)
    private String summary;

    public ProcessBean() {
    }

    public ProcessBean(int priority, String summary) {
        this.priority = priority;
        this.summary = summary;
        this.content = summary;
        this.sec = System.currentTimeMillis();
        Log.e(TAG, summary);
    }

    public ProcessBean(int priority, int stepIndex, int cycleIndex, int actionIndex, String summary, String content) {
        this.priority = priority;
        this.stepIndex = stepIndex;
        this.cycleIndex = cycleIndex;
        this.actionIndex = actionIndex;
        this.summary = summary;
        this.content = content;
        this.sec = System.currentTimeMillis();
        Log.e(TAG, String.format("步骤%d,循环%d,动作%d : %s", stepIndex, cycleIndex, actionIndex, summary));
    }

    public long getSec() {
        return sec;
    }

    public void setSec(long sec) {
        this.sec = sec;
    }

    public int getStepIndex() {
        return stepIndex;
    }

    public void setStepIndex(int stepIndex) {
        this.stepIndex = stepIndex;
    }

    public int getActionIndex() {
        return actionIndex;
    }

    public void setActionIndex(int actionIndex) {
        this.actionIndex = actionIndex;
    }

    public int getCycleIndex() {
        return cycleIndex;
    }

    public void setCycleIndex(int cycleIndex) {
        this.cycleIndex = cycleIndex;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }
}
